import { Component } from '@angular/core';

import { CartService } from '../app/CartService';
import { Observable } from 'rxjs';

// 配送
@Component({
  selector: 'app-shipping',
  templateUrl: './shipping.component.html',
  styleUrls: ['./shipping.component.less'],
  providers: [CartService]
})
export class ShippingComponent {
  shippingCosts!: Observable<{ type: string, price: number }[]>;
  
  constructor(private cartService: CartService) { }

  ngOnInit(): void {
    this.shippingCosts =  this.cartService.getShippingPrices();
  }
}
